package com.developmentReformProject.dao;

import com.developmentReformProject.dto.ApplyQueryDto;
import com.developmentReformProject.dto.EnterpriseQueryDto;
import com.developmentReformProject.dto.ThreeQueryDto;
import com.developmentReformProject.entity.Enterprise;
import com.developmentReformProject.entity.FiveYearProject;
import com.developmentReformProject.entity.ThreeYearProject;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface ThreeProjectDao {
    int countSelective(ThreeQueryDto threeQueryDto);

    /**
     * 动态查询
     * @param
     * @return
     * @throws Exception
     */
    public List<ThreeYearProject> selectSelective(ThreeQueryDto threeQueryDto) throws Exception;

    void addThree(ThreeYearProject threeYearProject);
    void updateThree(ThreeYearProject threeYearProject);
    void  deleteProject(Integer threeProjectNo);
    public void cleanThree(int threeProjectNo);
    public List<ThreeYearProject> listDelete(ThreeQueryDto threeQueryDto);
    int countClean(ThreeQueryDto threeQueryDto);
    ThreeYearProject queryByNo(int threeProjectNo);
    Double countSum();
    List<Map<Integer,Integer>> countType();
    int countOne();
    int countTwo();
    int countThree();
    int countFour();
    int countFive();
    int countSix();
}
